package com.cws.controller.business;

import java.io.File;

import com.cws.enmu.RspCode;
import com.cws.model.Spots;
import com.cws.service.SpotService;
import com.cws.utils.WSUtil;
import com.jfinal.core.Controller;

public class SpotsController extends Controller {

	public void getVoiceFile() {
		String spotsId = getPara();
		File voiceFile = SpotService.getInstance().getVoiceFileById(spotsId);
		renderFile(voiceFile);

	}


	
	public void getAll() {
		renderJson(WSUtil.createRsp(RspCode.SUCCESS, Spots.dao.getAll()));
	}

	
}
